<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="text/html; charset=iso-8859-1" %>
<%@ page import="java.text.DateFormat" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="org.tigr.htc.cmd.*" %>
<%@ page import="org.apache.log4j.Logger" %>
<%@ page import="org.apache.log4j.PropertyConfigurator" %>
<%!
    static SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd");
    static SimpleDateFormat dateTimeFormatter = new  SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  	static private Logger logger = Logger.getLogger(Command.class);
%>

<%
    HashSet selectedStates = new HashSet();
    selectedStates.add(CmdState.RUNNING.toString());
    selectedStates.add(CmdState.WAITING.toString());
    selectedStates.add(CmdState.INIT.toString());
    String user = "";
    String period = null;
    String order = null;
    String idType = null;
    boolean adminMode = false;
%>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>HTC Request Search</title>
  <link href="htcserver.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<%@ include file="header.jsp"%>
<h2>HTC Request Search</h2>
Use this page to search for current and past HTC requests.
<p>
Requests can be searched using HTC ID, Grid ID, or 
one of the request attributes such as the submit time, state, or user name. The default
is to search for all the searches in Running, Init, and Waiting state. 
<%@ include file="request_search_form.jspf"%>
<%@ include file="footer.jsp"%>
</body>
</html>